package rmi.server;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import model.MessageInterface;
import model.UserInterface;

public interface Message extends Remote
{
	public MessageInterface newMessage(UserInterface user) throws RemoteException;
	
	public UserInterface getRecipient(String username) throws RemoteException;
	
	public void storeMessage(MessageInterface message) throws RemoteException;
	
	public void deleteMessage(MessageInterface message) throws RemoteException;

	public ArrayList<MessageInterface> getMessages(UserInterface user) throws RemoteException;
}
